﻿using System;
using System.ComponentModel.DataAnnotations;
using AdAggregator.Advertisement;
using AdAggregator.Attribute;

namespace ClothingAggregator.Models
{
    public class MyAdvertisement : BaseAdvertisement, IPricedAdvertisement
    {
        public String Title { get; set; }
        public String Photo { get; set; }
        [Sortable("Cena")]
        public decimal? Price { get; set; }
        [Key]
        public int Id { get; set; }
        public String AdSource { get; set; }
        public String SourceString { get; set; }

        public MyAdvertisement(MyAdvertisement other)
        {
            Title = other.Title;
            Photo = other.Photo;
            Link = other.Link;
            Price = other.Price;
            AdSource = other.AdSource;
        }

        public MyAdvertisement()
        {
        }
    }
}